﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LedCenter.GUI
{
    public partial class LedStatusViewer : Form
    {
        private ushort ledStatusWidth;
        private ushort ledStatusHeight;
        //private byte[] ledStatusData;
        private bool bInvert;
        public LedStatusViewer()
        {
            InitializeComponent();
        }

        public LedStatusViewer(ushort ledStatusWidth, ushort ledStatusHeight, byte[] ledStatusData,bool invert = true)
        {
            // TODO: Complete member initialization
            this.ledStatusWidth = ledStatusWidth;
            this.ledStatusHeight = ledStatusHeight;
            //this.ledStatusData = ledStatusData;
            InitializeComponent();
            //letiLed
#if !TOANNV
            letiLed.initWithLedStatusData(ledStatusWidth,ledStatusHeight,ledStatusData);
#else
            letiLed.initWithLedData(ledStatusWidth, ledStatusHeight, ledStatusData);
#endif
            cbBlink.Checked = false;
        }

        private void cbBlink_CheckedChanged(object sender, EventArgs e)
        {
            letiLed.Blinking = cbBlink.Checked;
        }

    }
}
